package executable.instance.inheritance;

public class FieldInheritanceB extends FieldInheritanceA {

    private int number = -999;

    @Override
    public void setFamilyNumber(int number) {
        this.number = number;
        super.setFamilyNumber(number);
    }

    @Override
    public int getFamilyNumberSum() {
        return number + super.getFamilyNumberSum();
    }

    @Override
    public int getNumber() {
        return number;
    }
}
